package com.hdoit.kylin.logical.document.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.kylin.logical.document.dao.IAchievementDao;
import com.hdoit.kylin.logical.document.model.Achievement;
import com.hdoit.kylin.logical.document.service.IAchievementService;
import com.hdoit.kylin.logical.viewmodel.document.AchievementSearch;
/**
* @author luozhicheng
* @email
* @createtime 2017年07月18日 20:39:50
* @comment
*/
@Component
public class AchievementServiceImpl extends SuperService<Achievement> implements IAchievementService{

	private IAchievementDao achievementDao;
	
	public IAchievementDao getAchievementDao() {
		return achievementDao;
	}
    @Resource
	public void setAchievementDao(IAchievementDao achievementDao) {
		this.achievementDao = achievementDao;
	}

	@Override
	public List<Achievement> queryListByGroupId(AchievementSearch search,PagerModel pagerModel) {
		return achievementDao.queryListByGroupId(search,pagerModel);
	}

	@Override
	public int queryCountByGroupId(AchievementSearch search) {
		return achievementDao.queryCountByGroupId(search);
	}

	
}